<?php

// +----------------------------------------------------------------------

// | ThinkPHP [ WE CAN DO IT JUST THINK ]

// +----------------------------------------------------------------------

// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.

// +----------------------------------------------------------------------

// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )

// +----------------------------------------------------------------------

// | Author: liu21st <liu21st@gmail.com>

// +----------------------------------------------------------------------

use think\facade\Route;



//后台

Route::group(function (){

    //首页

    Route::group(function (){

        Route::rule('admin/home','admin.Home/index');



        //获取模板对应的首页自动加载数据

        Route::rule('admin/getTemplateHomeData','admin.miniapp.template/getHomeData');

    });



    //会员管理

    Route::group(function (){

        Route::rule('admin/getMemberList','admin.Member/index');

        Route::rule('admin/showMember','admin.Member/show');

        Route::rule('admin/saveMember','admin.Member/save');

        Route::rule('admin/saveNickName','admin.Member/saveNickName');

        Route::rule('admin/exportMember','admin.Member/export');



        Route::rule('admin/getMemberDetail','admin.Member/detail');

        Route::rule('admin/assignAdviser','admin.Member/assignAdviser');

        Route::rule('admin/balanceRecharge','admin.Member/balanceRecharge');

        Route::rule('admin/balanceDeduction','admin.Member/balanceDeduction');

        Route::rule('admin/integralRecharge','admin.Member/integralRecharge');

        Route::rule('admin/integralDeduction','admin.Member/integralDeduction');

        Route::rule('admin/sendCoupon','admin.Member/sendCoupon');



        Route::rule('admin/getMemberCouponList','admin.member.Coupon/index');

        Route::rule('admin/getMemberCouponLogsList','admin.logs.Member/coupon');

        Route::rule('admin/writeOffCoupon','admin.Member/writeOffCoupon');



        Route::rule('admin/getMemberBalanceLogsList','admin.logs.Member/balance');

        Route::rule('admin/getMemberIntegralLogsList','admin.logs.Member/integral');

        Route::rule('admin/getMemberBuyLogsList','admin.logs.Member/buy');



        //线下补单

        Route::rule('admin/getSupplementList','admin.member.Supplement/index');

        Route::rule('admin/getMemberWithMobileFromSupplement','admin.member.Supplement/getMemberWithMobileFromSupplement');

        Route::rule('admin/saveSupplement','admin.member.Supplement/save');

        //办理次卡

        Route::rule('admin/chooseOnceCard','admin.project.Oncecard/chooseOnceCard');

        Route::rule('admin/applyOnceCard','admin.project.Oncecard/applyOnceCard');

        //白名单
        Route::rule('admin/showWhiteList','admin.Member/showWhiteList');

        Route::rule('admin/saveWhiteList','admin.Member/saveWhiteList');

        //流量变现
        Route::rule('admin/incomeList','admin.member.FlowRealisation/incomeList');

        //根据会员id获取会员信息
        Route::rule('admin/getMember','admin.Member/getMember');

    });



    //卡项管理

    Route::group(function (){

        //项目分类管理

        Route::rule('admin/getProjectTypeList','admin.project.Project/getProjectTypeList');

        Route::rule('admin/showProjectType','admin.project.Project/showProjectType');

        Route::rule('admin/saveProjectType','admin.project.Project/saveProjectType');

        Route::rule('admin/delProjectType','admin.project.Project/delProjectType');



        //项目管理

        Route::rule('admin/getProjectList','admin.project.Project/index');

        Route::rule('admin/showProject','admin.project.Project/show');

        Route::rule('admin/saveProject','admin.project.Project/save');

        Route::rule('admin/delProject','admin.project.Project/del');



        //抢购管理

        Route::rule('admin/getSnapupList','admin.project.Snapup/index');

        Route::rule('admin/showSnapup','admin.project.Snapup/show');

        Route::rule('admin/chooseProjectFromSnapup','admin.project.Snapup/chooseProject');

        Route::rule('admin/saveSnapup','admin.project.Snapup/save');

        Route::rule('admin/undercarriageSnapup','admin.project.Snapup/undercarriage');

        Route::rule('admin/groundingSnapup','admin.project.Snapup/grounding');

        Route::rule('admin/delSnapup','admin.project.Snapup/del');



        //次卡管理

        Route::rule('admin/getOncecardList','admin.project.Oncecard/index');

        Route::rule('admin/showOncecard','admin.project.Oncecard/show');

        Route::rule('admin/getProjectByIdsFromOncecard','admin.project.Oncecard/getProjectByIdsFromOncecard');

        Route::rule('admin/getProjectFromOncecard','admin.project.Oncecard/getProjectFromOncecard');

        Route::rule('admin/saveOncecard','admin.project.Oncecard/save');

        Route::rule('admin/undercarriageOncecard','admin.project.Oncecard/undercarriage');

        Route::rule('admin/groundingOncecard','admin.project.Oncecard/grounding');

        Route::rule('admin/delOncecard','admin.project.Oncecard/del');



        //抢购订单管理

        Route::rule('admin/getSnapupOrderList','admin.project.SnapupOrder/index');

        Route::rule('admin/getSnapupOrderDetail','admin.project.SnapupOrder/detail');

        Route::rule('admin/writeOffSnapupOrder','admin.project.SnapupOrder/writeOff');

        Route::rule('admin/getMemberSnapUpList','admin.project.SnapupOrder/getMemberSnapUpList');

        Route::rule('admin/getMemberSnapUpLogs','admin.project.SnapupOrder/getMemberSnapUpLogs');



        //次卡订单管理

        Route::rule('admin/getOncecardOrderList','admin.project.OncecardOrder/index');

        Route::rule('admin/getMemberOnceCardList','admin.project.OncecardOrder/getMemberOnceCardList');

        Route::rule('admin/getOncecardOrderDetail','admin.project.OncecardOrder/detail');

        Route::rule('admin/writeOffOncecardOrder','admin.project.OncecardOrder/writeOff');

        Route::rule('admin/getMemberOnceCardLogs','admin.project.OncecardOrder/getMemberOnceCardLogs');

    });



    //预约排版

    Route::group(function (){

       //技师管理

        Route::rule('admin/getTechnicianList','admin.appointment.Technician/index');

        Route::rule('admin/showTechnician','admin.appointment.Technician/show');

        Route::rule('admin/saveTechnician','admin.appointment.Technician/save');

        Route::rule('admin/quitTechnician','admin.appointment.Technician/quit');

        Route::rule('admin/delTechnician','admin.appointment.Technician/del');

        Route::rule('admin/getTechnicianDetail','admin.appointment.Technician/detail');

        Route::rule('admin/changTagsFromTechnicianDetail','admin.appointment.Technician/changTags');

        Route::rule('admin/getTechnicianAppointmentList','admin.appointment.Technician/getTechnicianAppointmentList');

        Route::rule('admin/getTechnicianBindProjectList','admin.appointment.Technician/getTechnicianBindProjectList');

        Route::rule('admin/getProjectListFromTechnicianBind','admin.appointment.Technician/getProjectListFromTechnicianBind');

        Route::rule('admin/technicianBindProject','admin.appointment.Technician/technicianBindProject');

        Route::rule('admin/delTechnicianProject','admin.appointment.Technician/delTechnicianProject');



        //预约列表

        Route::rule('admin/getAppointmentList','admin.appointment.Appointment/index');

        Route::rule('admin/chooseProjectFromAppointment','admin.appointment.Appointment/chooseProject');

        Route::rule('admin/chooseTechnicianFromAppointment','admin.appointment.Appointment/chooseTechnician');

        Route::rule('admin/saveAppointment','admin.appointment.Appointment/save');

        Route::rule('admin/sureAppointment','admin.appointment.Appointment/sure');

        Route::rule('admin/cancelAppointment','admin.appointment.Appointment/cancel');

        Route::rule('admin/arrivalAppointment','admin.appointment.Appointment/arrival');


        //指派技师

        Route::rule('admin/appointTechnician','admin.appointment.Appointment/appointTechnician');


        //预约看板

        Route::rule('admin/showAppointmentKanban','admin.appointment.Kanban/show');



        //预约设置

        Route::rule('admin/showAppointmentSetting','admin.appointment.Setting/show');

        Route::rule('admin/saveAppointmentSetting','admin.appointment.Setting/save');



        //技师排班

        Route::rule('admin/showTechnicianScheduling','admin.appointment.Scheduling/show');

        Route::rule('admin/showTechnicianFromScheduling','admin.appointment.Scheduling/showTechnicianFromScheduling');

        Route::rule('admin/getProjectFromScheduling','admin.appointment.Scheduling/getProjectFromScheduling');

        Route::rule('admin/saveTechnicianScheduling','admin.appointment.Scheduling/save');

        Route::rule('admin/delTechnicianScheduling','admin.appointment.Scheduling/del');



        //业绩类型

        Route::rule('admin/getPerformanceTypeList','admin.appointment.PerformanceType/index');

        Route::rule('admin/showPerformanceType','admin.appointment.PerformanceType/show');

        Route::rule('admin/savePerformanceType','admin.appointment.PerformanceType/save');

        Route::rule('admin/delPerformanceType','admin.appointment.PerformanceType/del');



        //业绩核准

        Route::rule('admin/getPerformanceList','admin.appointment.Performance/index');

        Route::rule('admin/approvalPerformance','admin.appointment.Performance/approval');



        //员工业绩

        Route::rule('admin/getEmployeePerformanceList','admin.appointment.EmployeePerformance/index');

        Route::rule('admin/getEmployeePerformanceDetail','admin.appointment.EmployeePerformance/getEmployeePerformanceDetail');

    });



    //会员等级管理

    Route::group(function (){

        Route::rule('admin/getLevelList','admin.Level/index');

        Route::rule('admin/showLevel','admin.Level/show');

        Route::rule('admin/saveLevel','admin.Level/save');

        Route::rule('admin/delLevel','admin.Level/del');

        Route::rule('admin/getSelectedLevelList','admin.Level/getSelectedLevelList');
        Route::rule('admin/getMemberLevelList','admin.Level/indexLevel');
        Route::rule('admin/showMemberLevel','admin.Level/showLevel');
        Route::rule('admin/saveMemberLevel','admin.Level/saveLevel');
        Route::rule('admin/showSetLevel','admin.Level/showSet');
        Route::rule('admin/saveSetLevel','admin.Level/saveSet');


    });



    //优惠卷

    Route::group(function (){

        Route::rule('admin/getCouponList','admin.Coupon/index');

        Route::rule('admin/showCoupon','admin.Coupon/show');

        Route::rule('admin/saveCoupon','admin.Coupon/save');

        Route::rule('admin/undercarriageCoupon','admin.Coupon/undercarriage');

        Route::rule('admin/groundingCoupon','admin.Coupon/grounding');

        Route::rule('admin/delCoupon','admin.Coupon/del');

        Route::rule('admin/chooseCoupon','admin.Coupon/choose');

        //礼包
        Route::rule('admin/getGiftbagCouponList','admin.Coupon/giftbagIndex');

        Route::rule('admin/getGiftbagList','admin.Giftbag/index');

        Route::rule('admin/showGiftbag','admin.Giftbag/show');

        Route::rule('admin/saveGiftbag','admin.Giftbag/save');

        Route::rule('admin/delGiftbag','admin.Giftbag/del');

        //优惠券分类
        Route::rule('admin/couponCate','admin.coupon.Coupon/cate');

        Route::rule('admin/getCouponIndex','admin.coupon.Coupon/index');

    });



    //商城

    Route::group(function (){



        Route::rule('admin/getOrderList','cashier.Order/getOrderList');

        Route::rule('admin/getOrderDetail','cashier.Order/getOrderDetail');



        //商品分类

        Route::rule('admin/getGoodsCategoryList','admin.mall.GoodsCategory/index');

        Route::rule('admin/showGoodsCategory','admin.mall.GoodsCategory/show');

        Route::rule('admin/saveGoodsCategory','admin.mall.GoodsCategory/save');

        Route::rule('admin/delGoodsCategory','admin.mall.GoodsCategory/del');

        Route::rule('admin/saveCategory','admin.mall.GoodsCategory/saveCategory');

        Route::rule('admin/saveCategoryInfo','admin.mall.GoodsCategory/saveInfo');
        Route::rule('admin/saveCategorysort','admin.mall.GoodsCategory/sort');

        //商品管理

        Route::rule('admin/getGoodsList','admin.mall.Goods/index');

        Route::rule('admin/showGoods','admin.mall.Goods/show');

        Route::rule('admin/saveGoods','admin.mall.Goods/save');

        Route::rule('admin/undercarriageGoods','admin.mall.Goods/undercarriage');

        Route::rule('admin/groundingGoods','admin.mall.Goods/grounding');

        Route::rule('admin/chooseGoods','admin.mall.Goods/choose');

        //限时秒杀

        Route::rule('admin/getFlashSaleList','admin.mall.FlashSale/index');

        Route::rule('admin/showFlashSale','admin.mall.FlashSale/show');

        Route::rule('admin/saveFlashSale','admin.mall.FlashSale/save');

        Route::rule('admin/undercarriageFlashSale','admin.mall.FlashSale/undercarriage');

        Route::rule('admin/groundingFlashSale','admin.mall.FlashSale/grounding');



        //多人拼团

        //拼团商品

        Route::rule('admin/getPinTuanGoodsList','admin.mall.pintuan.Goods/index');

        Route::rule('admin/showPinTuanGoods','admin.mall.pintuan.Goods/show');

        Route::rule('admin/savePinTuanGoods','admin.mall.pintuan.Goods/save');

        Route::rule('admin/undercarriagePinTuanGoods','admin.mall.pintuan.Goods/undercarriage');

        Route::rule('admin/groundingPinTuanGoods','admin.mall.pintuan.Goods/grounding');

        //拼团管理

        Route::rule('admin/getGroupList','admin.mall.pintuan.Group/index');

        Route::rule('admin/getGroupMemberList','admin.mall.pintuan.Group/getGroupMemberList');

        Route::rule('admin/getGroupDetail','admin.mall.pintuan.Group/getGroupDetail');

        Route::rule('admin/toGroup','admin.mall.pintuan.Group/toGroup');



        //囤货管理

        //囤货商品

        Route::rule('admin/getStoreGoodsList','admin.mall.store.Goods/index');

        Route::rule('admin/showStoreGoods','admin.mall.store.Goods/show');

        Route::rule('admin/saveStoreGoods','admin.mall.store.Goods/save');

        Route::rule('admin/undercarriageStoreGoods','admin.mall.store.Goods/undercarriage');

        Route::rule('admin/groundingStoreGoods','admin.mall.store.Goods/grounding');

        //囤货订单

        Route::rule('admin/getStoreOrderList','admin.mall.store.Order/index');

        Route::rule('admin/getStoreOrderDetail','admin.mall.store.Order/detail');

        Route::rule('admin/writeOffStoreOrder','admin.mall.store.Order/writeOffStoreOrder');



        //订单管理

        Route::rule('admin/getGoodsOrderNum','admin.mall.Order/getGoodsOrderNum');

        Route::rule('admin/getGoodsOrderList','admin.mall.Order/index');

        Route::rule('admin/getGoodsOrderDetail','admin.mall.Order/detail');

        Route::rule('admin/deliverGoodsOrder','admin.mall.Order/deliverGoods');

        Route::rule('admin/writeOffOrder','admin.mall.Order/writeOff');

        Route::rule('admin/overGoodsOrder','admin.mall.Order/overGoods');



        //运费模板

        Route::rule('admin/showFreightTemplate','admin.mall.FreightTemplate/show');

        Route::rule('admin/saveFreightTemplate','admin.mall.FreightTemplate/save');



        //代客下单

        Route::rule('admin/getMemberWithMobileFromFakeOrder','admin.mall.FakeOrder/getMemberWithMobileFromFakeOrder');

        Route::rule('admin/getGoodsFromFakeOrder','admin.mall.FakeOrder/getGoodsFromFakeOrder');

        Route::rule('admin/getGoodsByIdsFromFakeOrder','admin.mall.FakeOrder/getGoodsByIdsFromFakeOrder');

        Route::rule('admin/getFreightFromFakeOrder','admin.mall.FakeOrder/getFreightFromFakeOrder');

        Route::rule('admin/createFakeOrder','admin.mall.FakeOrder/createFakeOrder');



        //商城统计

        Route::rule('admin/getMallStatisticsCount','admin.mall.Statistics/getMallStatisticsCount');

        Route::rule('admin/getMallStatisticsTakeCountRanking','admin.mall.Statistics/getMallStatisticsTakeCountRanking');

        Route::rule('admin/getMallStatisticsViewsRanking','admin.mall.Statistics/getMallStatisticsViewsRanking');

        Route::rule('admin/getMallStatisticsTrend','admin.mall.Statistics/getMallStatisticsTrend');

    });

    //商品
    Route::group(function (){

        //产品管理

        //产品管理列表
        Route::rule('admin/getGoodsManageList','admin.goods.Goods/index');
        //单独获取会员折扣
        Route::rule('admin/getDiscountDetail','admin.goods.Goods/getDiscountDetail');
        //产品和套餐上下架
        Route::rule('admin/saveGoodsManageStatus','admin.goods.Goods/saveStatus');
        //产品和套餐删除
        Route::rule('admin/saveGoodsManageDel','admin.goods.Goods/del');
        //产品和套餐删除分类
        Route::rule('admin/goodsManageDelCategoty','admin.goods.Goods/delCategoty');

        //产品
        Route::rule('admin/showGoodsInfo','admin.goods.Goods/show');

        Route::rule('admin/saveGoodsInfo','admin.goods.Goods/save');

        //套餐
        Route::rule('admin/showSetMeal','admin.goods.Goods/showSetMeal');

        Route::rule('admin/saveSetMeal','admin.goods.Goods/saveSetMeal');

        //产品和套餐单独修改会员折扣
        Route::rule('admin/saveVipDiscount','admin.goods.Goods/saveVipDiscount');

        //菜单管理（菜品）

        //产品库导入
        Route::rule('admin/goodsImportMenu','admin.goods.Goods/importMenu');







        //规格管理
        Route::rule('admin/getGoodsOtherSkuList','admin.goods.sku.GoodsOtherSku/index');

        Route::rule('admin/showGoodsOtherSku','admin.goods.sku.GoodsOtherSku/show');

        Route::rule('admin/saveGoodsOtherSku','admin.goods.sku.GoodsOtherSku/save');

        Route::rule('admin/saveGoodsOtherSkuStatus','admin.goods.sku.GoodsOtherSku/saveStatus');

        Route::rule('admin/delGoodsOtherSku','admin.goods.sku.GoodsOtherSku/del');

        Route::rule('admin/unitList','admin.goods.sku.GoodsOtherSku/unitList');

        //通用门店
        Route::rule('admin/generalShop','admin.goods.Goods/generalShop');

    });


    //相册

    Route::group(function (){

        Route::rule('admin/getLookList','admin.Look/index');

        Route::rule('admin/showLook','admin.Look/show');

        Route::rule('admin/saveLook','admin.Look/save');

        Route::rule('admin/delLook','admin.Look/del');

    });



    //合伙人

    Route::group(function (){

        //合伙人设置

        Route::rule('admin/showPartnerSetting','admin.partner.Setting/show');

        Route::rule('admin/savePartnerSetting','admin.partner.Setting/save');



        //合伙人

        Route::rule('admin/getPartnerList','admin.partner.Partner/index');

        Route::rule('admin/showPartner','admin.partner.Partner/show');

        Route::rule('admin/getPartnerDetail','admin.partner.Partner/detail');

        Route::rule('admin/savePartner','admin.partner.Partner/save');

        Route::rule('admin/delayPartner','admin.partner.Partner/delay');

        Route::rule('admin/withdrawalPartner','admin.partner.Partner/withdrawal');

        Route::rule('admin/delPartner','admin.partner.Partner/del');

        Route::rule('admin/getPartnerIncomeList','admin.partner.Partner/getPartnerIncomeList');

        Route::rule('admin/getPartnerCustomerList','admin.partner.Partner/getPartnerCustomerList');

        Route::rule('admin/bindMemberPartner','admin.partner.Partner/bindMember');

        Route::rule('admin/getPartnerDetailWithdrawList','admin.partner.Partner/getPartnerDetailWithdrawList');


        //提现记录

        Route::rule('admin/getPartnerWithdrawList','admin.partner.Withdraw/index');

        Route::rule('admin/agreePartnerWithdraw','admin.partner.Withdraw/agree');

        Route::rule('admin/withdrawSetting','admin.partner.Withdraw/withdrawSetting');

        Route::rule('admin/saveWithdrawSetting','admin.partner.Withdraw/saveWithdrawSetting');


        //合伙人礼包
        Route::rule('admin/getPartnerGiftbagList','admin.partner.Partner/getPartnerGiftbagList');

        Route::rule('admin/showPartnerGiftbag','admin.partner.Partner/showPartnerGiftbag');

        Route::rule('admin/savePartnerGiftbag','admin.partner.Partner/savePartnerGiftbag');

        Route::rule('admin/delPartnerGiftbag','admin.partner.Partner/delPartnerGiftbag');

        //礼包
        Route::rule('admin/giftbagList','admin.partner.giftbag.Giftbag/index');

        Route::rule('admin/detailGiftbag','admin.partner.giftbag.Giftbag/show');

        Route::rule('admin/updateGiftbag','admin.partner.giftbag.Giftbag/save');

        Route::rule('admin/deleteGiftbag','admin.partner.giftbag.Giftbag/del');

        Route::rule('admin/deleteGiftbagDetail','admin.partner.giftbag.Giftbag/detailDel');

        Route::rule('admin/giftbagDetailSet','admin.partner.giftbag.Giftbag/detailSet');

        Route::rule('admin/giftbagDetailSetSave','admin.partner.giftbag.Giftbag/detailSetSave');

        //合伙人管理

        Route::rule('admin/getPartnerInfoList','admin.partner.PartnerManage/index');

        Route::rule('admin/showPartnerInfo','admin.partner.PartnerManage/show');

        Route::rule('admin/bonusInfo','admin.partner.PartnerManage/bonus');

        Route::rule('admin/savePartnerInfo','admin.partner.PartnerManage/save');

        Route::rule('admin/savePartnerWithdrawal','admin.partner.PartnerManage/withdrawal');

        Route::rule('admin/delPartnerInfo','admin.partner.PartnerManage/del');

        Route::rule('admin/delayPartnerInfo','admin.partner.PartnerManage/delay');
        //股东分红
        Route::rule('admin/bonusList','admin.partner.PartnerBonus/index');

        Route::rule('admin/bonusDetail','admin.partner.PartnerBonus/bonusDetail');

        Route::rule('admin/historyBonusList','admin.partner.PartnerBonus/historyBonus');

        Route::rule('admin/historyBonusDetail','admin.partner.PartnerBonus/historyBonusDetail');
        //消费分红
//        Route::rule('admin/consumeBonusTypeList','admin.partner.ConsumeBonus/consumeBonusList');

        Route::rule('admin/consumeBonusList','admin.partner.ConsumeBonus/index');

        Route::rule('admin/contributeDetail','admin.partner.ConsumeBonus/contributeDetail');

        Route::rule('admin/consumeBonusTimeType','admin.partner.ConsumeBonus/timeType');

        Route::rule('admin/endIndex','admin.partner.ConsumeBonus/endIndex');

        Route::rule('admin/endDetail','admin.partner.ConsumeBonus/endDetail');

    });

    //财务
    Route::group(function (){
        //店铺账户信息
        Route::rule('admin/showAccount','admin.finance.Settlement/account');
        //获取结算列表
        Route::rule('admin/getSettlementList','admin.finance.Settlement/index');
        //锁客分佣列表
        Route::rule('admin/LockMemberList','admin.finance.Settlement/LockMemberList');

        Route::rule('admin/withdrawAccountList','admin.finance.Withdraw/withdrawAccountList');

        Route::rule('admin/withdrawAccount','admin.finance.Withdraw/withdrawAccount');

        Route::rule('admin/saveWithdrawAccount','admin.finance.Withdraw/saveWithdrawAccount');

        Route::rule('admin/saveWithdrawAccountDefault','admin.finance.Withdraw/saveWithdrawAccountDefault');

        Route::rule('admin/wthdrawApplyFor','admin.finance.Withdraw/applyFor');

        Route::rule('admin/withdrawInfo','admin.finance.Withdraw/withdrawInfo');

        Route::rule('admin/withdrawDetail','admin.finance.Withdraw/detail');

        Route::rule('admin/settlementDetail','admin.finance.Settlement/detail');

        Route::rule('admin/settlementDetailOrderList','admin.finance.Settlement/detailOrderList');

        Route::rule('admin/settlementDetailList','admin.finance.Settlement/detailList');

        Route::rule('admin/balanceDetail','admin.finance.Withdraw/balanceDetail');

        Route::rule('admin/cs','admin.finance.Settlement/cs');
    });
    //新订单管理
    Route::group(function (){
        Route::rule('admin/orderDetail','admin.mall.order.Order/detail');

        Route::rule('admin/orderIndex','admin.mall.order.Order/index');
    });
    //店铺设置

    Route::group(function (){

        //账号管理

        Route::rule('admin/getShopStaffList','admin.setting.ShopStaff/index');

        Route::rule('admin/showShopStaff','admin.setting.ShopStaff/show');

        Route::rule('admin/saveShopStaff','admin.setting.ShopStaff/save');

        Route::rule('admin/leaveShopStaff','admin.setting.ShopStaff/leave');

        Route::rule('admin/chooseShopStaff','admin.setting.ShopStaff/choose');

        Route::rule('admin/quitShopStaff','admin.setting.ShopStaff/quit'); // 技师离职

        Route::rule('admin/delShopStaff','admin.setting.ShopStaff/del'); // 删除技师



        //短信设置

        Route::rule('admin/showSmsSetting','admin.setting.Sms/show');

        Route::rule('admin/saveSmsSetting','admin.setting.Sms/save');

        Route::rule('admin/getSmsPackage','admin.setting.Sms/getSmsPackage');

        Route::rule('admin/getRechargeLogs','admin.setting.Sms/getRechargeLogs');

        Route::rule('admin/getSmsSendLogs','admin.setting.Sms/getSmsSendLogs');



        //积分设置

        Route::rule('admin/showIntegralSetting','admin.setting.Integral/show');

        Route::rule('admin/saveIntegralSetting','admin.setting.Integral/save');



        //余额设置

        Route::rule('admin/showBalanceSetting','admin.setting.Balance/show');

        Route::rule('admin/saveBalanceSetting','admin.setting.Balance/save');



        //买单设置

        Route::rule('admin/showBuySetting','admin.setting.Buy/show');

        Route::rule('admin/saveBuySetting','admin.setting.Buy/save');



        //打印机设置

        Route::rule('admin/showPrinterSetting','admin.setting.Printer/showPrinterSetting');

        Route::rule('admin/savePrinterSetting','admin.setting.Printer/savePrinterSetting');

        Route::rule('admin/getPrinterList','admin.setting.Printer/getPrinterList');

        Route::rule('admin/showPrinter','admin.setting.Printer/showPrinter');

        Route::rule('admin/bindYlyPrinter','admin.setting.Printer/bindYlyPrinter');

        Route::rule('admin/bindFeiePrinter','admin.setting.Printer/bindFeiePrinter');
        Route::rule('admin/delPrint','admin.setting.Printer/delPrint');


        //配送设置
        Route::rule('admin/setOpen','admin.setting.Send/setOpen');

        Route::rule('admin/showSendKuaidiSetting','admin.setting.Send/showKuaidi');

        Route::rule('admin/saveSendKuaidiSetting','admin.setting.Send/saveKuaidi');

        Route::rule('admin/showSendCitySetting','admin.setting.Send/showCity');

        Route::rule('admin/saveSendCitySetting','admin.setting.Send/saveCity');

        Route::rule('admin/showSendSelfSetting','admin.setting.Send/showSelf');

        Route::rule('admin/saveSendSelfSetting','admin.setting.Send/saveSelf');


        //白名单设置
        Route::rule('admin/showWhiteListSetting','admin.setting.WhiteList/show');

        Route::rule('admin/saveWhiteListSetting','admin.setting.WhiteList/save');

        //多店版合伙人
        Route::rule('admin/partnerManageShowOpen','admin.setting.Partner/showOpen');

        Route::rule('admin/partnerManageOpenSet','admin.setting.Partner/openSet');

        Route::rule('admin/getPartnerDividendSet','admin.setting.Partner/getDividendSet');

        Route::rule('admin/showPromotionSet','admin.setting.Partner/showPromotionSet');

        Route::rule('admin/savePromotionSet','admin.setting.Partner/savePromotionSet');

        Route::rule('admin/showDividendSet','admin.setting.Partner/showDividendSet');

        Route::rule('admin/saveDividendSet','admin.setting.Partner/saveDividendSet');

        Route::rule('admin/showBonus','admin.setting.Partner/showBonus');

        Route::rule('admin/saveBonus','admin.setting.Partner/saveBonus');

        //消费分红设置
        Route::rule('admin/consumeBonusOpenSet','admin.setting.ConsumeBonus/openSet');

        Route::rule('admin/showConsumeBonusSet','admin.setting.ConsumeBonus/showConsumeBonusSet');

        Route::rule('admin/saveConsumeBonusSet','admin.setting.ConsumeBonus/saveConsumeBonusSet');

    });



    //小程序

    Route::group(function (){

        //推荐小程序

        Route::rule('admin/getRecommendAppList','admin.miniapp.Recommend/index');

        Route::rule('admin/showRecommendApp','admin.miniapp.Recommend/show');

        Route::rule('admin/saveRecommendApp','admin.miniapp.Recommend/save');

        Route::rule('admin/delRecommendApp','admin.miniapp.Recommend/del');

        //主题设置

        Route::rule('admin/getStyle','admin.miniapp.Template/getStyle');

        Route::rule('admin/saveStyle','admin.miniapp.Template/saveStyle');

    });

    //区域桌号

    Route::group(function (){

        Route::rule('/admin/region/list','admin.setting.region/list');
        Route::rule('/admin/region/info','admin.setting.region/info');
        Route::rule('/admin/region/del','admin.setting.region/del');
        Route::rule('/admin/region/edit','admin.setting.region/edit');
        Route::rule('/admin/region/add','admin.setting.region/add');
        Route::rule('/admin/region/effect','admin.setting.region/effect');
        Route::rule('/admin/region/sort','admin.setting.region/sort');
        Route::rule('/admin/tablenumber/list','admin.setting.tablenumber/list');
        Route::rule('/admin/tablenumber/info','admin.setting.tablenumber/info');
        Route::rule('/admin/tablenumber/del','admin.setting.tablenumber/del');
        Route::rule('/admin/tablenumber/edit','admin.setting.tablenumber/edit');
        Route::rule('/admin/tablenumber/add','admin.setting.tablenumber/add');
        Route::rule('/admin/tablenumber/effect','admin.setting.tablenumber/effect');
        Route::rule('/admin/tablenumber/all_del','admin.setting.tablenumber/all_del');
        Route::rule('/admin/tablenumber/downzip','admin.setting.tablenumber/downzip');

    });
    //店铺编辑
    Route::group(function (){

        Route::rule('/admin/shop/brandlist','admin.setting.shop/brandlist');
        Route::rule('/admin/shop/info','admin.setting.shop/info');
        Route::rule('/admin/shop/up','admin.setting.shop/up');
        Route::rule('/admin/shop/voice_up','admin.setting.shop/voice_up');
        Route::rule('/admin/shop/voice_test','admin.setting.shop/voice_test');
        Route::rule('/admin/shop/voice_del','admin.setting.shop/voice_del');

    });
    //联盟商家

    Route::group(function (){
        Route::rule('/admin/shopalliance/info','admin.setting.shopalliance/info');
        Route::rule('/admin/shopalliance/list','admin.setting.shopalliance/list');
        Route::rule('/admin/shopalliance/del','admin.setting.shopalliance/del');
        Route::rule('/admin/shopalliance/conf_edit','admin.setting.shopalliance/conf_edit');
        Route::rule('/admin/shopalliance/shop_list','admin.setting.shopalliance/shop_list');
        Route::rule('/admin/shopalliance/add','admin.setting.shopalliance/add');
        Route::rule('/admin/shopalliance/notice_list','admin.setting.shopalliance/notice_list');
        Route::rule('/admin/shopalliance/notice_info','admin.setting.shopalliance/notice_info');
        Route::rule('/admin/shopalliance/notice_up','admin.setting.shopalliance/notice_up');
        Route::rule('/admin/shopalliance/notice_in','admin.setting.shopalliance/notice_in');

    });
    //出品管理
    Route::group(function (){

        Route::rule('/admin/producetype/list','admin.producetype/list');
        Route::rule('/admin/producetype/info','admin.producetype/info');
        Route::rule('/admin/producetype/effect','admin.producetype/effect');
        Route::rule('/admin/producetype/del','admin.producetype/del');
        Route::rule('/admin/producetype/edit','admin.producetype/edit');
        Route::rule('/admin/producetype/add','admin.producetype/add');

        Route::rule('/admin/producedepart/list','admin.producedepart/list');
        Route::rule('/admin/producedepart/info','admin.producedepart/info');
        Route::rule('/admin/producedepart/effect','admin.producedepart/effect');
        Route::rule('/admin/producedepart/del','admin.producedepart/del');
        Route::rule('/admin/producedepart/edit','admin.producedepart/edit');
        Route::rule('/admin/producedepart/add','admin.producedepart/add');

        Route::rule('/admin/produce/list','admin.produce/list');
        Route::rule('/admin/produce/info','admin.produce/info');
        Route::rule('/admin/produce/del','admin.produce/del');
        Route::rule('/admin/produce/edit','admin.produce/edit');
        Route::rule('/admin/produce/add','admin.produce/add');
    });
    //商户管理
    Route::group(function (){

        Route::rule('/admin/shoppay/list','admin.setting.shoppay/list');
        Route::rule('/admin/shoppay/info','admin.setting.shoppay/info');
        Route::rule('/admin/shoppay/effect','admin.setting.shoppay/effect');
        Route::rule('/admin/shoppay/del','admin.setting.shoppay/del');
        Route::rule('/admin/shoppay/edit','admin.setting.shoppay/edit');
        Route::rule('/admin/shoppay/add','admin.setting.shoppay/add');
        Route::rule('/admin/shoppay/allinpay_info','admin.setting.shoppay/allinpay_info');
        Route::rule('/admin/shoppay/allinpay_edit','admin.setting.shoppay/allinpay_edit');

    });
    //供应商管理
    Route::group(function (){

        Route::rule('/admin/supplier/list','admin.supplier/list');
        Route::rule('/admin/supplier/info','admin.supplier/info');
        Route::rule('/admin/supplier/effect','admin.supplier/effect');
        Route::rule('/admin/supplier/del','admin.supplier/del');
        Route::rule('/admin/supplier/edit','admin.supplier/edit');
        Route::rule('/admin/supplier/add','admin.supplier/add');
        Route::rule('/admin/supplier/goods_add','admin.supplier/goods_add');
        Route::rule('/admin/supplier/goods_del','admin.supplier/goods_del');

    });
    //商品规格管理
    Route::group(function (){

        Route::rule('/admin/goodsspec/list','admin.goodsspec/list');
        Route::rule('/admin/goodsspec/info','admin.goodsspec/info');
        Route::rule('/admin/goodsspec/del','admin.goodsspec/del');
        Route::rule('/admin/goodsspec/edit','admin.goodsspec/edit');
        Route::rule('/admin/goodsspec/add','admin.goodsspec/add');

    });
})->middleware([\app\beautiful\middleware\Base::class,\app\beautiful\middleware\AdminCheck::class]);

